/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年2月2日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package chainOfResp;

/**
 * @Type Leader
 * @Desc
 * @author 52489
 * @date 2019年2月2日
 * @Version V1.0
 */
public abstract class Leader {
    protected String name;
    protected Leader nextLeader; // 责任链上的后继对象

    public Leader(String name) {
        super();
        this.name = name;
    }

    // 设置责任链上的后继对象
    public void setNextLeader(Leader nextLeader) {
        this.nextLeader = nextLeader;

    }

    public abstract void handleRequest(LeaveRequest leaveRequest);

}
